package com.lza.phone.controller;


import com.lza.phone.entity.SocSort;
import com.lza.phone.service.SocSortService;
import com.lza.response.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 李钊澳
 * @since 2021-09-13
 */
@RestController
@RequestMapping("/socSort")
public class SocSortController {
    @Autowired
    SocSortService socSortService;
    @ApiOperation("统计各公司处理器数量")
    @GetMapping("/countCpuCompany")
    public Result countCpuCompany(){
        List<SocSort> socSorts = socSortService.countCpuCompany();
        return Result.ok().getData("嘿嘿", socSorts);

    }

}

